home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
comm
/
misc
/
xqsrc1_7.lzh
/
make
< prev
next >
Wrap
Text File
|
1993-03-13
|
2KB
|
81 lines
/*
* Make xferq.library, public tools, and private tools
*/
parse upper arg mktype
address command
select
when mktype = 'D' then defname = '/devel.def'
when mktype = 'P' then defname = '/production.def'
when mktype = 'B' then do
call pragma('d', 'include')
'bumprev 1 XferQ_rev'
call pragma('d', '/')
exit
end
otherwise do
say "Use 'D' for development, 'P' for production."
exit
end
end
/*
* For a production run, delete all objects (to force a make).
*/
if mktype = 'P' then do
'delete obj/#?.o obj/#?.dis'
end
if exists('library') then do
call pragma('d', 'library')
'smake -b ' || defname
temp = rc
call pragma('d', '/')
if temp ~= 0 then exit
end
if exists('tools') then do
call pragma('d', 'tools')
'smake -b ' || defname
temp = rc
call pragma('d', '/')
if temp ~= 0 then exit
end
if exists('test') then do
call pragma('d', 'test')
'smake -b ' || defname
temp = rc
call pragma('d', '/')
if temp ~= 0 then exit
end
/*
* After doing production run, delete all objects (for packing)
* and make the docs. Finally, archive it all.
*/
if mktype = 'P' then do
if exists('work:doc/xfq_pw') then do
call pragma('d', 'doc')
'smake -b ' || defname
call pragma('d', '/')
end
'delete obj/#?.o #?.lzh xferq.library'
arcname = 'xqsrc' || substr(date('s'),3) || '.lzh'
'lz -x -isource.list a ' || arcname
arcname = 'xqdev' || substr(date('s'),3) || '.lzh'
'lz -x -idevel.list a ' || arcname
end
/*
* For development, strip debug info from library so I can ship it to
* Russ.
*/
if mktype = 'D' then do
'slink bin/xferq.library to xferq.library nd noicons'
end